import Taro, { Component } from '@tarojs/taro'
import { View, Text, Image, WebView } from '@tarojs/components'
// import { AtButton } from 'taro-ui'
import './aolideHos.scss'
import aolide from '../../img/aolide.png'
import app from '../../main.js';

export default class AolideHos extends Component {

  config = {
    navigationBarTitleText: ''
  } 

  constructor(){
      super(...arguments)
      this.state={
            path:''
      }
  }
  
  id = 0

  getData(){
    let myToken = app.getToken()
    let localPath = app.apiUri+'/hospital_detail.html'+'?id='+this.$router.params.id+'&token='+myToken
    console.log(localPath)
    this.setState({
      path:localPath
    })
  } 

  componentDidMount(){
      this.getData();
      // Taro.setNavigationBarTitle({
      //     title:this.$router.params.title
      // })
  }

  render(){
      return (
          <WebView src={this.state.path} />
      )
  }
}